home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmFFFFrrrraaaammmmeeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmFFFFrrrraaaammmmeeee((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _X_m_F_r_a_m_e - The Frame widget class
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/Frame.h>
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- Frame is a very simple manager used to enclose a single work
- area child in a border drawn by Frame. It uses the Manager
- class resources for border drawing and performs geometry
- management so that its size always matches its child's outer
- size plus the Frame's margins and shadow thickness.
-
- Frame is most often used to enclose other managers when the
- application developer desires the manager to have the same
- border appearance as the primitive widgets. Frame can also
- be used to enclose primitive widgets that do not support the
- same type of border drawing. This gives visual consistency
- when you develop applications using diverse widget sets.
- Constraint resources are used to designate a child as the
- Frame title, align its text, and control its vertical
- alignment in relation to Frame's top shadow. The title
- appears only at the top of the Frame.
-
- If the Frame's parent is a Shell widget, _X_m_N_s_h_a_d_o_w_T_y_p_e
- defaults to _X_m_S_H_A_D_O_W__O_U_T, and Manager's resource
- _X_m_N_s_h_a_d_o_w_T_h_i_c_k_n_e_s_s defaults to 1.
-
- If the Frame's parent is not a Shell widget, _X_m_N_s_h_a_d_o_w_T_y_p_e
- defaults to _X_m_S_H_A_D_O_W__E_T_C_H_E_D__I_N, and Manager's resource
- _X_m_N_s_h_a_d_o_w_T_h_i_c_k_n_e_s_s defaults to 2.
-
- CCCCllllaaaasssssssseeeessss
- Frame inherits behavior and resources from the _C_o_r_e,
- _C_o_m_p_o_s_i_t_e, _C_o_n_s_t_r_a_i_n_t, and _X_m_M_a_n_a_g_e_r classes.
-
- The class pointer is _x_m_F_r_a_m_e_W_i_d_g_e_t_C_l_a_s_s.
-
- The class name is _X_m_F_r_a_m_e.
-
- NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss
- The following table defines a set of widget resources used
- by the programmer to specify data. The programmer can also
- set the resource values for the inherited classes to set
- attributes for this widget. To reference a resource by name
- or by class in a .Xdefaults file, remove the _X_m_N or _X_m_C
- prefix and use the remaining letters. To specify one of the
- defined values for a resource in a .Xdefaults file, remove
- the _X_m prefix and use the remaining letters (in either
- lowercase or uppercase, but include any underscores between
- words). The codes in the access column indicate if the
- given resource can be set at creation time (C), set by using
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmFFFFrrrraaaammmmeeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmFFFFrrrraaaammmmeeee((((3333XXXX))))
-
-
-
- _X_t_S_e_t_V_a_l_u_e_s (S), retrieved by using _X_t_G_e_t_V_a_l_u_e_s (G), or is
- not applicable (N/A).
-
- XXXXmmmmFFFFrrrraaaammmmeeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ____________________________________________________________________
- XmNmarginWidth XmCMarginWidth Dimension 0 CSG
- XmNmarginHeight XmCMarginHeight Dimension 0 CSG
- XmNshadowType XmCShadowType unsigned char dynamic CSG
-
-
- _X_m_N_m_a_r_g_i_n_W_i_d_t_h
- Specifies the padding space on the left and right sides
- between Frame's child and Frame's shadow drawing.
-
- _X_m_N_m_a_r_g_i_n_H_e_i_g_h_t
- Specifies the padding space on the top and bottom sides
- between Frame's child and Frame's shadow drawing. When
- a title is present, the top margin equals the value
- specified by this resource plus the distance (if any)
- that the title extends below the top shadow.
-
- _X_m_N_s_h_a_d_o_w_T_y_p_e
- Describes the drawing style for Frame. This resource
- can have the following values:
-
- +o _X_m_S_H_A_D_O_W__I_N - draws Frame so that it appears inset.
- This means that the bottom shadow visuals and top
- shadow visuals are reversed.
-
- +o _X_m_S_H_A_D_O_W__O_U_T - draws Frame so that it appears outset.
- This is the default if Frame's parent is a Shell
- widget.
-
- +o _X_m_S_H_A_D_O_W__E_T_C_H_E_D__I_N - draws Frame using a double line
- giving the effect of a line etched into the window.
- The thickness of the double line is equal to the value
- of _X_m_N_s_h_a_d_o_w_T_h_i_c_k_n_e_s_s. This is the default when
- Frame's parent is not a Shell widget.
-
- +o _X_m_S_H_A_D_O_W__E_T_C_H_E_D__O_U_T - draws Frame using a double line
- giving the effect of a line coming out of the window.
- The thickness of the double line is equal to the value
- of _X_m_N_s_h_a_d_o_w_T_h_i_c_k_n_e_s_s.
-
- XXXXmmmmFFFFrrrraaaammmmeeee CCCCoooonnnnssssttttrrrraaaaiiiinnnntttt RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ___________________________________________________________________________________________________________
- XmNchildType XmCChildType unsigned char XmFRAME_WORKAREA_CHILD CSG
- XmNchildHorizontalAlignment XmCChildHorizontalAlignment unsigned char XmALIGNMENT_BEGINNING CSG
-
-
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmFFFFrrrraaaammmmeeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmFFFFrrrraaaammmmeeee((((3333XXXX))))
-
-
-
- XmNchildHorizontalSpacing XmCChildHorizontalSpacing Dimension dynamic CSG
- XmNchildVerticalAlignment XmCChildVerticalAlignment unsigned char XmALIGNMENT_CENTER CSG
-
-
- _X_m_N_c_h_i_l_d_T_y_p_e
- Specifies whether a child is a title or work area.
- Frame supports a single title and/or work area child.
- The possible values are:
-
- +o _X_m_F_R_A_M_E__T_I_T_L_E__C_H_I_L_D
-
- +o _X_m_F_R_A_M_E__W_O_R_K_A_R_E_A__C_H_I_L_D
-
- +o _X_m_F_R_A_M_E__G_E_N_E_R_I_C__C_H_I_L_D
-
- The Frame geometry manager ignores any child of type
- _X_m_F_R_A_M_E__G_E_N_E_R_I_C__C_H_I_L_D.
-
- _X_m_N_c_h_i_l_d_H_o_r_i_z_o_n_t_a_l_A_l_i_g_n_m_e_n_t
- Specifies the alignment of the title. This resource
- has the following values:
-
- +o _X_m_A_L_I_G_N_M_E_N_T__B_E_G_I_N_N_I_N_G
-
- +o _X_m_A_L_I_G_N_M_E_N_T__C_E_N_T_E_R
-
- +o _X_m_A_L_I_G_N_M_E_N_T__E_N_D
-
- See the description of _X_m_N_a_l_i_g_n_m_e_n_t in the _X_m_L_a_b_e_l man page
- for an explanation of these values.
-
- _X_m_N_c_h_i_l_d_H_o_r_i_z_o_n_t_a_l_S_p_a_c_i_n_g
- Specifies the minimum distance between either edge of
- the title text and the inner edge of the Frame shadow.
- Clipping of the title text occurs in order to maintain
- this spacing. The default value is the margin width of
- the Frame.
-
- _X_m_N_c_h_i_l_d_V_e_r_t_i_c_a_l_A_l_i_g_n_m_e_n_t
- Specifies the vertical alignment of the title text, or
- the title area in relation to the top shadow of the
- Frame.
-
- +o _X_m_A_L_I_G_N_M_E_N_T__B_A_S_E_L_I_N_E__B_O_T_T_O_M - causes the baseline of
- the title to align vertically with the top shadow of
- the Frame. In the case of a multi-line title, the
- baseline of the last line of text aligns vertically
- with the top shadow of the Frame.
-
- +o _X_m_A_L_I_G_N_M_E_N_T__B_A_S_E_L_I_N_E__T_O_P - causes the baseline of the
- first line of the title to align vertically with the
- top shadow of the Frame.
-
-
-
- Page 3 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmFFFFrrrraaaammmmeeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmFFFFrrrraaaammmmeeee((((3333XXXX))))
-
-
-
- +o _X_m_A_L_I_G_N_M_E_N_T__W_I_D_G_E_T__T_O_P - causes the top edge of the
- title area to align vertically with the top shadow of
- the Frame.
-
- +o _X_m_A_L_I_G_N_M_E_N_T__C_E_N_T_E_R - causes the center of the title
- area to align vertically with the top shadow of the
- Frame.
-
- +o _X_m_A_L_I_G_N_M_E_N_T__W_I_D_G_E_T__B_O_T_T_O_M - causes the bottom edge of
- the title area to align vertically with the top shadow
- of the Frame.
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss
- Frame inherits behavior and resources from the following
- superclasses. For a complete description of each resource,
- refer to the man page for that superclass.
-
- XXXXmmmmMMMMaaaannnnaaaaggggeeeerrrr RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- _________________________________________________________________________________________________
- XmNbottomShadowColor XmCBottomShadowColor Pixel dynamic CSG
- XmNbottomShadowPixmap XmCBottomShadowPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNforeground XmCForeground Pixel dynamic CSG
- XmNhelpCallback XmCCallback XtCallbackList NULL C
- XmNhighlightColor XmCHighlightColor Pixel dynamic CSG
- XmNhighlightPixmap XmCHighlightPixmap Pixmap dynamic CSG
- XmNinitialFocus XmCInitialFocus Widget NULL CSG
- XmNnavigationType XmCNavigationType XmNavigationType XmTAB_GROUP CSG
- XmNshadowThickness XmCShadowThickness Dimension dynamic CSG
- XmNstringDirection XmCStringDirection XmStringDirection dynamic CG
- XmNtopShadowColor XmCTopShadowColor Pixel dynamic CSG
- XmNtopShadowPixmap XmCTopShadowPixmap Pixmap dynamic CSG
- XmNtraversalOn XmCTraversalOn Boolean True CSG
- XmNunitType XmCUnitType unsigned char dynamic CSG
- XmNuserData XmCUserData XtPointer NULL CSG
-
-
- CCCCoooommmmppppoooossssiiiitttteeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ______________________________________________________________________
- XmNchildren XmCReadOnly WidgetList NULL G
- XmNinsertPosition XmCInsertPosition XtOrderProc NULL CSG
- XmNnumChildren XmCReadOnly Cardinal 0 G
-
-
- CCCCoooorrrreeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ______________________________________________________________________________________________________________
- XmNaccelerators XmCAccelerators XtAccelerators dynamic CSG
- XmNancestorSensitive XmCSensitive Boolean dynamic G
-
-
-
-
-
- Page 4 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmFFFFrrrraaaammmmeeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmFFFFrrrraaaammmmeeee((((3333XXXX))))
-
-
-
- XmNbackground XmCBackground Pixel dynamic CSG
- XmNbackgroundPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderColor XmCBorderColor Pixel XtDefaultForeground CSG
- XmNborderPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderWidth XmCBorderWidth Dimension 0 CSG
- XmNcolormap XmCColormap Colormap dynamic CG
- XmNdepth XmCDepth int dynamic CG
- XmNdestroyCallback XmCCallback XtCallbackList NULL C
- XmNheight XmCHeight Dimension dynamic CSG
- XmNinitialResourcesPersistent XmCInitialResourcesPersistent Boolean True C
- XmNmappedWhenManaged XmCMappedWhenManaged Boolean True CSG
- XmNscreen XmCScreen Screen * dynamic CG
- XmNsensitive XmCSensitive Boolean True CSG
- XmNtranslations XmCTranslations XtTranslations dynamic CSG
- XmNwidth XmCWidth Dimension dynamic CSG
- XmNx XmCPosition Position 0 CSG
- XmNy XmCPosition Position 0 CSG
-
-
- TTTTrrrraaaannnnssssllllaaaattttiiiioooonnnnssss
- XmFrame inherits translations from XmManager.
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _C_o_m_p_o_s_i_t_e(_3_X), _C_o_n_s_t_r_a_i_n_t(_3_X), _C_o_r_e(_3_X), _X_m_C_r_e_a_t_e_F_r_a_m_e(_3_X),
- and _X_m_M_a_n_a_g_e_r(_3_X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 5 (printed 11/11/03)
-
-
-
-